package com.authorization.demo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Remarks: 用户表
 * @ClassName: UserTable
 * @Author: Micora
 * @CreateTime: 2022/7/13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("USERTABLE")
public class UserTable {
    @TableId(value = "user_name")
    private String userName;
    private String name;
    private String password;
    private Integer gender;
    private String phone;
    private String mail;
    private Integer status;
    private String remarks;

    @TableField(fill = FieldFill.INSERT)
    private Date createDate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date alterDate;


}
